<template>
  <div id="basicLayout">
    <a-layout>
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";

</script>

<style scoped>
#basicLayout {
  min-height: 100vh;
  background: #f5f7fa;
}

#basicLayout .footer {
  background-color: #ffffff;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

#basicLayout .content {
  padding: 20px;
  background: #f5f7fa;
  min-height: calc(100vh - 64px - 53px);
}

#basicLayout .header {
  background: white;
  margin-bottom: 16px;
  color: unset; /* 恢复文字颜色成未设置 */
  padding-inline: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

</style>
